package com.example.his.api.mis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.his.api.mis.controller.form.LoginForm;
import com.example.his.api.mis.controller.form.SearchUserByPageForm;
import com.example.his.api.mis.controller.form.UpdatePasswordForm;
import com.example.his.api.db.pojo.UserEntity;
import com.example.his.api.utils.PageUtils;

import java.util.HashMap;
import java.util.List;


public interface UserService extends IService<UserEntity> {
    Integer login(LoginForm form);

    Boolean updatePassword(UpdatePasswordForm form);

    PageUtils searchByPage(SearchUserByPageForm form);

    Boolean insert(UserEntity user);


    UserEntity searchById(Integer id);

    int deleteByIds(List<Integer> ids);

    int dismiss(Integer id,Integer status);
    public HashMap searchDoctorById(int userId);
}
